const tableConfig = {
	stripe: true,
	border: true,
	maxHeight: '80vh',
	columns: [
		{
			label: '规则编号',
			prop: 'ruleNo',
		},
		{
			label: 'key',
			prop: 'informKey',
		},
		{
			label: '模板编号',
			prop: 'templateNo',
		},
		{
			label: '创建人',
			prop: 'templateNo',
		},
		{
			label: '创建时间',
			prop: 'createTime',
		},
		{
			label: '操作',
			prop: 'menu',
			width: 300,
			fixed: 'right',
		},
	],
}

export const formConfig = {
	label: '数据管理设置',
	prop: 'base0',
	inline: false,
	showBtn: true,
	labelPosition: 'left',
	column: [
		{
			label: '规则编号',
			prop: 'ruleNo',
			type: 'remoteSelect',
			api:'view_dataExpireRemindRule_list',
			multiple:false,
			filterKey:'randomNo',
			filterLabel:'ruleName',
			span: 8,
		},
		{
			label: 'key',
			prop: 'informKey',
			type: 'input',
			span: 8,
		},
		{
			label: '模板编号',
			prop: 'templateNo',
			type: 'remoteSelect',
			api:'view_dataNoteTemplate_list',
			multiple:false,
			filterKey:'randomNo',
			filterLabel:'templateName',
			span: 8,
		},
	],
}
const searchConfig = {
	inline: true,
	showBtn: true,
	labelPosition: 'left',
	column: [
		{
			label: '规则编号',
			prop: 'ruleNo',
			type: 'remoteSelect',
			api:'view_dataExpireRemindRule_list',
			multiple:false,
			filterKey:'randomNo',
			filterLabel:'ruleName',
			span: 8,
		},
		{
			label: 'key',
			prop: 'informKey',
			type:'input',
			span: 8,
		},
		{
			label: '模板编号',
			prop: 'templateNo',
			type: 'remoteSelect',
			api:'view_dataNoteTemplate_list',
			multiple:false,
			filterKey:'randomNo',
			filterLabel:'templateName',
			span: 8,
		},
	],
}
export const baseConfig: any = {
	pageName: '数据过期配置表',
	addLabel: '添加',
	dictcodes: [],
	rowKey: 'id',
	tipLabel: 'ruleNo',
	api: {
		index: 'view_dataExpireConfig_page',
		add: 'view_dataExpireConfig_add',
		edit: 'view_dataExpireConfig_edit',
		delete: 'view_dataExpireConfig_del',
	},
	auth: {
		index: 'view_dataExpireConfig_page',
		add: 'view_dataExpireConfig_add',
		edit: 'view_dataExpireConfig_edit',
		delete: 'view_dataExpireConfig_del',
	},

	menuBtn: [
		{
			icon: 'editor',
			label: '编辑',
			type: 'primary',
			operate: 'edit',
			auth: 'view_dataManagementSettings_edit',
			text: true,
			show: true,
		},
		{
			icon: 'delete',
			label: '删除',
			type: 'primary',
			operate: 'delete',
			auth: 'view_dataManagementSettings_del',
			text: true,
			show: true,
		},
	],
	dialogConfig: {
		width: '65%',
	},
	searchConfig,
	tableConfig,
	formConfig,
}
